import axios from "axios";
class Http {
    static request({
        url,
        method = "get",
        data = {},
        params = {}
    }) {
        return new Promise((resolve, reject) => {
            axios({
                url,
                method,
                data,
                params
            }).then(res => {
                resolve(res)
            }).catch(err => {
                reject(err)
            })
        })
    }
}

export default Http